Class ClassMapManagerImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ClassMapManagerImpl
All Implemented Interfaces:
IPCObject, ClassMapManager

public class ClassMapManagerImpl extends IPCObjectImpl implements ClassMapManager
Information provided by the PKI file:

    \class ClassMapManager
    
    \brief ClassMapManager is the manager for QoS class maps.
    
    \example network().getDevice("Router0").getClassMapManager()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • deleteClassMap

      public void deleteClassMap(String name)
      Information provided by the PKI file:
      
          \brief Removes the specified class map.
          
          \param name, the name of the class map of interest.
          
          \param string, the class map name.
          
              
      Specified by:
      deleteClassMap in interface ClassMapManager
      Parameters:
      name - Takes in a parameter of name
    • classMapExist

      public boolean classMapExist(String name)
      Information provided by the PKI file:
      
          \brief Returns true if the specified class map exists, otherwise false.
          
          \param name, the name of the class map of interest.
          
          \return bool, true if the specified class map exists, otherwise false.
          
              
      Specified by:
      classMapExist in interface ClassMapManager
      Parameters:
      name - Takes in a parameter of name
      Returns:
      boolean Returns a boolean
    • getClassMapCount

      public Short getClassMapCount()
      Information provided by the PKI file:
      
          \brief Returns the number of class maps.
          
          \return short, the number of class maps.
          
              
      Specified by:
      getClassMapCount in interface ClassMapManager
      Returns:
      Short Returns a Short
    • getClassMapAt

      public ClassMap getClassMapAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the ClassMap object at the specified index.
          
          \param mapname, the index of the class map of interest.
          
          \return ClassMap, the ClassMap object at the specified index.
          
              
      Specified by:
      getClassMapAt in interface ClassMapManager
      Parameters:
      index - Takes in a parameter of index
      Returns:
      ClassMap Returns a ClassMap
    • getClassMap

      public ClassMap getClassMap(String mapname)
      Information provided by the PKI file:
      
          \brief Returns the ClassMap object with the specified class map name.
          
          \param mapname, the name of the class map of interest.
          
          \return ClassMap, the ClassMap object with the associated class map name.
          
              
      Specified by:
      getClassMap in interface ClassMapManager
      Parameters:
      mapname - Takes in a parameter of mapname
      Returns:
      ClassMap Returns a ClassMap
    • hasCircularReference

      public boolean hasCircularReference(String map1, String map2)
      Information provided by the PKI file:
      
          \brief Returns true if the two specified class maps are the same, otherwise false.
          
          \param map1, the name of the first class map.
          \param map2, the name of the second class map.
          
          \return bool, true if the two specified class maps are the same, otherwise false.
          
              
      Specified by:
      hasCircularReference in interface ClassMapManager
      Parameters:
      map1 - Takes in a parameter of map1
      map2 - Takes in a parameter of map2
      Returns:
      boolean Returns a boolean
    • rearrangeMaps

      public void rearrangeMaps(String map1, String map2)
      Information provided by the PKI file:
      
          \brief Rearranges the specified class maps such that map1 precedes map2.
          
          \param map1, the name of the first class map.
          \param map2, the name of the second class map.
          
              
      Specified by:
      rearrangeMaps in interface ClassMapManager
      Parameters:
      map1 - Takes in a parameter of map1
      map2 - Takes in a parameter of map2